package com.mutouren.modules.ca.service;

import org.springframework.beans.factory.InitializingBean;

import com.mutouren.common.entity.Result;
import com.mutouren.common.entity.ResultInfo;
import com.mutouren.common.orm.spring.BaseService;
import com.mutouren.modules.ca.model.User;

public interface UserService extends BaseService<User>, InitializingBean{
	ResultInfo<User> login(String loginName, String password);
	Result register(User user);
	
	Result modifyPassword(long userId, String oldPassword, String newPassword);
	void resetPassword(long userId);
	
	void verifyEmail(long userId, String email);
	void verifyMobile(long userId, String mobile);
	void approve(long userId);	
}
